home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_gnome-python.idb / usr / freeware / lib / python1.5 / site-packages / gnome / file.py.z / file.py
Encoding:
Python Source  |  1999-07-16  |  353 b   |  11 lines

  1. import _gnome, gnome
  2.  
  3. if not gnome.gnomelib_init_called:
  4.     _gnome.gnomelib_init(gnome.app_id, gnome.app_version)
  5.     gnome.gnomelib_init_called = 1
  6.  
  7. def convert_stream(fd, fromtype, totype):
  8.     return _gnome.gnome_file_convert_stream(fd, fromtype, totype)
  9. def convert(filename, fromtype, totype):
  10.     return _gnome.gnome_file_convert(filename, fromtype, totype)
  11.